<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page contentType="text/html;charset=UTF-8"%>

<form:input path="id" type="hidden" />

<div class="form-group">
	<div class="col-lg-offset-2 col-lg-10 alert alert-danger"
		id="painelErro">
		<span><strong>Erro:</strong><span id="camposObrigatorios"></span>
		</span>
	</div>
</div>
<div class="form-group">
	<label for="inputCodigo" class="col-lg-2 control-label">Código</label>
	<div class="col-lg-1">
		<form:input type="text" class="form-control" id="inputCodigo"
			placeholder="Digite o código" path="codigo" />
	</div>
</div>

<div class="form-group">
	<label for="inputCargo" class="col-lg-2 control-label">Cargo</label>
	<div class="col-lg-3">
		<form:select id="inputCargo" path="codigoCargoFuncao" class="form-control">
			<option value="">Selecione</option>
			<c:forEach var="cargo" items="${cargos}">
				<option value="${cargo.id}"
					<c:if test="${cargo.id eq nivel.cargoFuncao.id}" > selected="selected" </c:if>>${cargo.codigo} - ${cargo.descricao}</option>
			</c:forEach>
		</form:select>
	</div>
</div>

<div class="form-group">
	<label for="inputDescricao" class="col-lg-2 control-label">Descrição</label>
	<div class="col-lg-6">
		<form:input type="text" class="form-control" id="inputDescricao"
			placeholder="Digite a descrição" path="descricao" />
	</div>
</div>


<div class="form-group">
	<label for="inputValor" class="col-lg-2 control-label">Valor</label>
	<div class="col-lg-3">
		<form:input type="text" class="form-control" id="inputValor"
			placeholder="Digite o valor" path="valorTransiente" />
	</div>
</div>

<div class="form-group">
	<div class="col-lg-offset-2 col-lg-10">
		<a href="#" class="btn btn-success" id="btn-salvar">Salvar</a> <a
			href="#" id="btn-cancelar" class="btn btn-danger">Cancelar</a>
	</div>
</div>